package com.mybatis.service.impl;

import com.mybatis.entity.TUser;
import com.mybatis.mapper.TUserMapper;
import com.mybatis.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * Created by 85243 on 2017/5/19.
 */
public class UserServiceImpl implements UserService {

    @Autowired
    private TUserMapper tUserMapper;
    @Override
    public List<TUser> findUsers() throws Exception {
        return (List<TUser>) tUserMapper.selectByPrimaryKey(1);
    }
}
